package com.atguigu01._static;

import org.junit.Test;

public class ChineseTest {
    @Test
    public void test(){
        System.out.println("nihao");
    }
    public static void main(String[] args) {
        Chinese c1=new Chinese();
        Chinese c2=new Chinese();
        c1.nation="China";
        System.out.println(c1.nation);
        System.out.println(c2.nation);

        c1.show();
        Chinese.show();


    }
}

class Chinese{
    //非静态变量 实例变量
    String name;
    int age;

    static String nation;

    static void  show(){
        System.out.println("我是中国人");
    }



}
